package com.xiaoyi.tool.http;


import com.xiaoyi.entity.XyDataQueryResult;



import java.util.ArrayList;

import io.reactivex.Single;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;


public interface XyApiServe {


    @FormUrlEncoded
    @POST("getDataDirByType")
    public Single<ArrayList <String>> getDataDirByType( @Field("mType")  String mType) ;


    @FormUrlEncoded
    @POST("getDataByTypeAndDir")
    public Single<XyDataQueryResult> getDataByTypeAndDir(@Field("mType") String mType ,
                                                         @Field("mDir") String mDir  ,
                                                         @Field("pageSize") int pageSize ,
                                                         @Field("pageNum") int pageNum ,
                                                         @Field("isInverted") boolean isInverted);



}
